//
//  YYEPlayerView.h
//  YuYingEDU
//
//  Created by 胡波 on 2018/1/30.
//  Copyright © 2018年 胡波. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "RotationScreen.h"
#import <AliyunVodPlayerViewSDK/AliyunVodPlayerViewSDK.h>

typedef NS_ENUM(NSInteger, TouchPlayerViewMode) {
    TouchPlayerViewModeNone, // 轻触
    TouchPlayerViewModeHorizontal, // 水平滑动
    TouchPlayerViewModeUnknow, // 未知
};

@interface YYEPlayerView : UIView
{
    TouchPlayerViewMode _touchMode;
    
}

// 播放状态
@property (nonatomic, assign) BOOL isPlaying;

// 是否横屏
@property (nonatomic, assign) BOOL isLandscape;

@property (nonatomic,strong) UIView *playerView;
@property (nonatomic,strong) UIView *mainView;
@property (nonatomic,strong) UISlider *playSlider;
@property (nonatomic,strong) UIProgressView *loadedProgress;
@property (nonatomic,strong) UILabel *beginLabel;
@property (nonatomic,strong) UILabel *endLabel;
@property (nonatomic,strong) UIButton *playBtn;
@property (nonatomic,strong) UIButton *rotationBtn;

@property (nonatomic,strong) AliyunVodPlayer *player;

// 切换为横屏
- (void)setLandscapeLayout;

// 切换为竖屏
- (void)setProtraitLayout;

@end
